Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port ee9 BlockingTest to ee10/11 #12635

Merged
merged 26 commits into from
Jan 24, 2025
Merged

Conversation

lorban
Copy link
Contributor

@lorban lorban commented Dec 12, 2024

Porting ee9 BlockingTest to ee10/11 seems to have uncovered some bugs.

There are still some bugs in ee9 too, uncovered by the new testBlockingCloseWhileReading test:

  1. asyncContext.complete() throws after the connection was closed by the client. Historically, this test tolerated these exceptions though.
  2. outputStream.close() sometimes throws java.lang.IllegalArgumentException: newPosition > limit: (9 > 0) which tend to indicate a buffer use after release.

Once this is merged, a new issue should be opened about those.

Also contains a fix for #12721

@lorban lorban added Bug For general bugs on Jetty side Test labels Dec 12, 2024
@lorban lorban requested review from gregw and sbordet December 12, 2024 15:11
@lorban lorban self-assigned this Dec 12, 2024
@lorban lorban changed the title Port ee9 BlockingTest to ee10 and ee11 Port ee9 BlockingTest to ee10/11 Dec 12, 2024
Signed-off-by: Ludovic Orban <[email protected]>
Signed-off-by: Ludovic Orban <[email protected]>
lorban added 7 commits January 8, 2025 14:07
Signed-off-by: Ludovic Orban <[email protected]>
Signed-off-by: Ludovic Orban <[email protected]>
Signed-off-by: Ludovic Orban <[email protected]>
Signed-off-by: Ludovic Orban <[email protected]>
Signed-off-by: Ludovic Orban <[email protected]>
Signed-off-by: Ludovic Orban <[email protected]>
@lorban
Copy link
Contributor Author

lorban commented Jan 9, 2025

@gregw @sbordet nudge

Copy link
Contributor

@gregw gregw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering if this should be an integration test rather than a duplicated unit test?

Signed-off-by: Ludovic Orban <[email protected]>
Signed-off-by: Ludovic Orban <[email protected]>
… by DemoModulesTest.testSpec()

Signed-off-by: Ludovic Orban <[email protected]>
@lorban lorban requested a review from gregw January 24, 2025 14:14
@lorban lorban linked an issue Jan 24, 2025 that may be closed by this pull request
@lorban lorban merged commit 7b25151 into jetty-12.1.x Jan 24, 2025
10 checks passed
@lorban lorban deleted the jetty-12.1.x-ee10-BlockingTest branch January 24, 2025 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For general bugs on Jetty side Test
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

DemoModulesTest.testSpec() is flaky
2 participants